Skip to content
Snippets Groups Projects
Commit 20e1d490 authored by Jonas Braathen's avatar Jonas Braathen
Browse files

Convert .eslintrc.json to .eslintrc.js in order to set tsconfigRootDir

parent 56692b2a
No related branches found
No related tags found
1 merge request!173Consents
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
'airbnb-typescript',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint'],
rules: {
semi: 'off',
'react/jsx-props-no-spreading': 'off',
'@typescript-eslint/semi': ['error', 'never'],
'react/jsx-uses-react': 'off',
'jsx-quotes': 'error',
'react/react-in-jsx-scope': 'off',
},
}
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"airbnb-typescript",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"semi": "off",
"react/jsx-props-no-spreading": "off",
"@typescript-eslint/semi": ["error", "never"],
"react/jsx-uses-react": "off",
"jsx-quotes": "error",
"react/react-in-jsx-scope": "off"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment