Skip to content

Commit

Permalink
fix(configurations): move import extension eslint rule to local env (#…
Browse files Browse the repository at this point in the history
…459)

Co-authored-by: Sarin Udompanish <[email protected]>
  • Loading branch information
Sarin-Udompanish and Sarin Udompanish authored Sep 26, 2022
1 parent a85018c commit f8a9e1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/no-namespace": 0
"@typescript-eslint/no-namespace": 0,
"import/extensions": ["error", "always"]
},
"ignorePatterns": [
"packages/**/lib",
"packages/**/scripts",
"*.config.js",
"__test__",
"*.md"
] // .eslintignore resolves relative to working dir, this is needed to ignore files in workspaces
Expand Down
1 change: 0 additions & 1 deletion packages/configurations/typescript.eslint-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module.exports = {
extraFileExtensions: ['.html'],
},
rules: {
'import/extensions': ['error', 'always'],
'@typescript-eslint/unbound-method': 0,
'valid-jsdoc': [
2,
Expand Down
1 change: 1 addition & 0 deletions packages/elements/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"project": "./tsconfig.json"
},
"ignorePatterns": [
"cli.js",
"./**/__demo__",
"./**/__test__/**",
"./**/__snapshots__/**"
Expand Down

0 comments on commit f8a9e1a

Please sign in to comment.