You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.4 KiB
63 lines
1.4 KiB
{ |
|
"env": { |
|
"browser": true, |
|
"commonjs": true, |
|
"es6": true, |
|
"node": true |
|
}, |
|
"extends": [ |
|
"airbnb", |
|
"eslint:recommended", |
|
"plugin:@typescript-eslint/recommended", |
|
"plugin:import/errors", |
|
"plugin:import/typescript", |
|
"plugin:import/warnings", |
|
"plugin:jsx-a11y/recommended", |
|
"plugin:prettier/recommended", |
|
"plugin:react/recommended", |
|
"plugin:react-hooks/recommended", |
|
"prettier/@typescript-eslint", |
|
"prettier/react" |
|
], |
|
"plugins": [ |
|
"@typescript-eslint", |
|
"import", |
|
"jsx-a11y", |
|
"prettier", |
|
"react", |
|
"react-hooks" |
|
], |
|
"parser": "@typescript-eslint/parser", |
|
"parserOptions": { |
|
"ecmaFeatures": { |
|
"jsx": true |
|
}, |
|
"ecmaVersion": 2020, |
|
"sourceType": "module" |
|
}, |
|
"rules": { |
|
"complexity": ["error", 5], |
|
"import/extensions": [ |
|
"error", |
|
"ignorePackages", |
|
{ |
|
"js": "never", |
|
"jsx": "never", |
|
"ts": "never", |
|
"tsx": "never" |
|
} |
|
], |
|
// Allow JSX in files with other extensions |
|
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }], |
|
// Use TypeScript's types for component props |
|
"react/prop-types": "off", |
|
// Importing React is not required in Next.js |
|
"react/react-in-jsx-scope": "off", |
|
|
|
"camelcase": "off", |
|
"@typescript-eslint/camelcase": "off" |
|
}, |
|
"settings": { |
|
"react": { "version": "detect" } |
|
} |
|
}
|
|
|