mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
38 lines
798 B
JavaScript
38 lines
798 B
JavaScript
module.exports = {
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:react/recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
'plugin:prettier/recommended',
|
|
'prettier/@typescript-eslint'
|
|
],
|
|
plugins: ['@typescript-eslint', 'react'],
|
|
parser: '@typescript-eslint/parser',
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
es6: true
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: 'detect'
|
|
}
|
|
},
|
|
parserOptions: {
|
|
sourceType: 'module',
|
|
ecmaFeatures: {
|
|
jsx: true
|
|
}
|
|
},
|
|
rules: {
|
|
'react/react-in-jsx-scope': 'off',
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off'
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['*.js'],
|
|
rules: { '@typescript-eslint/no-var-requires': ['off'] }
|
|
}
|
|
]
|
|
}
|