1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00
_/frourio/.eslintrc.js

39 lines
798 B
JavaScript
Raw Permalink Normal View History

2020-10-12 13:35:33 +09:00
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'] }
}
]
}