Skip to content

Commit

Permalink
Split up eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
bjacobel committed May 14, 2024
1 parent 2c0d4f9 commit a562207
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
20 changes: 1 addition & 19 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
module.exports = {
root: true,
extends: [
'eslint-config-airbnb',
'eslint-config-prettier',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
extends: ['eslint-config-airbnb', 'eslint-config-prettier', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
Expand All @@ -29,19 +24,6 @@ module.exports = {
css: 'always',
},
],
'react/jsx-filename-extension': [2, { extensions: ['.js', '.html.jsx', '.tsx'] }],
'react/prefer-stateless-function': 0,
'react/destructuring-assignment': 0,
'react/jsx-props-no-spreading': 0,
'react/function-component-definition': [
2,
{
namedComponents: 'arrow-function',
unnamedComponents: 'arrow-function',
},
],
'react/require-default-props': 0,
'jsx-a11y/anchor-is-valid': [2, { specialLink: ['to'] }],
'@typescript-eslint/no-non-null-assertion': 0,
},
parserOptions: {
Expand Down
18 changes: 18 additions & 0 deletions app/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
extends: ['plugin:react-hooks/recommended'],
rules: {
'react/jsx-filename-extension': [2, { extensions: ['.js', '.html.jsx', '.tsx'] }],
'react/prefer-stateless-function': 0,
'react/destructuring-assignment': 0,
'react/jsx-props-no-spreading': 0,
'react/function-component-definition': [
2,
{
namedComponents: 'arrow-function',
unnamedComponents: 'arrow-function',
},
],
'react/require-default-props': 0,
'jsx-a11y/anchor-is-valid': [2, { specialLink: ['to'] }],
},
};

0 comments on commit a562207

Please sign in to comment.