Skip to content

Commit

Permalink
Move options path and improve type inference
Browse files Browse the repository at this point in the history
  • Loading branch information
rajsite committed May 14, 2024
1 parent 6da69a1 commit 973fa23
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 3 additions & 2 deletions packages/eslint-config-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
"access": "public"
},
"files": [
"/*.js",
"!/.*.js"
"**/*.js",
"!/.*.js",
"!/tools"
],
"peerDependencies": {
"@angular-eslint/builder": "^16.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-angular/template.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { ignoreAttributes } = require('./options');
const { ignoreAttributes } = require('./template/options');

module.exports = {
extends: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// CSS selector style element[attribute] ignore entries
// which can be used to scope attribute ignores to specific
// elements.
const ignoreAttributes = {
const ignoreAttributeSets = {
nimble: [
'action-menu-slot',
'appearance',
Expand Down Expand Up @@ -60,7 +60,11 @@ const ignoreAttributes = {
'matTooltipClass',
]
};
ignoreAttributes.all = Object.values(ignoreAttributes).flat();

const ignoreAttributes = {
...ignoreAttributeSets,
all: Object.values(ignoreAttributeSets).flat()
};

module.exports = {
ignoreAttributes
Expand Down
2 changes: 1 addition & 1 deletion tests/angular/custom-ignore-attributes/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {ignoreAttributes} = require('@ni/eslint-config-angular/options');
const {ignoreAttributes} = require('@ni/eslint-config-angular/template/options');

module.exports = {
overrides: [{
Expand Down

0 comments on commit 973fa23

Please sign in to comment.