Skip to content

Commit

Permalink
config eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
hieutbui committed May 27, 2023
1 parent 6099cd5 commit ac97ca5
Showing 1 changed file with 31 additions and 22 deletions.
53 changes: 31 additions & 22 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint'],
rules: {
'no-shadow': 'off',
'no-undef': 'off',
'react-native/no-inline-styles': 'off',
radix: 'off',
semi: [2, 'always'],
'prefer-const': [
'warn',
{ ignoreReadBeforeAssign: false, destructuring: 'any' },
],
"overrides": [
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
}
}
'no-duplicate-imports': ['error', { includeExports: false }],
'@typescript-eslint/consistent-type-imports': 'off',
'spaced-comment': 'off',
'prettier/prettier': 'off',
},
};

0 comments on commit ac97ca5

Please sign in to comment.