Skip to content

Commit

Permalink
Add ignore pattern and vscode settings]
Browse files Browse the repository at this point in the history
  • Loading branch information
rcantin-w committed Oct 3, 2024
1 parent 3ed14f4 commit 6122d35
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,22 @@ const sharedRules = {
],
};

const ignorePatterns = [
'/**/node_modules/',
'/**/libs/',
'/**/lib/',
'/**/_next/',
'/**/dist/',
];

module.exports = {
parser: '@babel/eslint-parser',
plugins: sharedPlugins,
env: {
'jest/globals': true,
},
extends: sharedExtends,
ignorePatterns,
rules: sharedRules,
reportUnusedDisableDirectives: true,
parserOptions: {
Expand Down
11 changes: 10 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"editor.formatOnSave": true
// We add this to avoid having linting commits in CI
"editor.tabSize": 2,
"files.encoding": "utf8",
"editor.codeActionsOnSave": {
"editor.insertSpaces": "explicit",
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit",
"files.trimTrailingWhitespace": "explicit"
},
"stylelint.validate": ["typescriptreact"]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"scripts": {
"prepare": "husky install",
"lint": "eslint \"**/*.{js,ts,tsx}\""
"lint": "eslint \"**/*.{js,ts}\""
},
"devDependencies": {
"@babel/eslint-parser": "^7.22.9",
Expand Down

0 comments on commit 6122d35

Please sign in to comment.