-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rik Roots
committed
Dec 30, 2024
1 parent
032a533
commit 5bc3503
Showing
1 changed file
with
49 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,52 @@ | ||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import reactPlugin from 'eslint-plugin-react'; | ||
import nodePlugin from 'eslint-plugin-n'; | ||
import flowtypePlugin from 'eslint-plugin-flowtype'; | ||
import eslint from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
import reactPlugin from "eslint-plugin-react"; | ||
import nodePlugin from "eslint-plugin-n"; | ||
import flowtypePlugin from "eslint-plugin-flowtype"; | ||
|
||
export default tseslint.config( | ||
|
||
// Load in recommended eslint configs | ||
eslint.configs.recommended, | ||
|
||
// Load in recommended tslint configs | ||
tseslint.configs.recommended, | ||
|
||
// Plugins and rules overrides | ||
{ | ||
plugins: { | ||
'@typescript-eslint': tseslint.plugin, | ||
'react': reactPlugin, | ||
'node': nodePlugin, | ||
'flowtype': flowtypePlugin, | ||
}, | ||
rules: { | ||
|
||
// Change 'off' to 'warn' to work out where cleanup is required | ||
// Change 'off' to 'error' for show-stopper issues | ||
|
||
'@/no-undef': 'off', | ||
|
||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/no-require-imports': 'off', | ||
'@typescript-eslint/no-this-alias': 'off', | ||
'@typescript-eslint/no-unused-expressions': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
|
||
'no-cond-assign': 'off', | ||
'no-constant-binary-expression': 'off', | ||
'no-constant-condition': 'off', | ||
'no-empty': 'off', | ||
'no-fallthrough': 'off', | ||
'no-func-assign': 'off', | ||
'no-prototype-builtins': 'off', | ||
'no-redeclare': 'off', | ||
'no-undef': 'off', | ||
'no-unsafe-finally': 'off', | ||
'no-unsafe-optional-chaining': 'off', | ||
'no-useless-escape': 'off', | ||
|
||
'node/no-unsupported-features/node-builtins': 'off', | ||
|
||
'react/display-name': 'off', | ||
} | ||
} | ||
// Load in recommended eslint configs | ||
eslint.configs.recommended, | ||
|
||
// Load in recommended tslint configs | ||
tseslint.configs.recommended, | ||
|
||
// Plugins and rules overrides | ||
{ | ||
plugins: { | ||
"@typescript-eslint": tseslint.plugin, | ||
react: reactPlugin, | ||
node: nodePlugin, | ||
flowtype: flowtypePlugin, | ||
}, | ||
rules: { | ||
// Change 'off' to 'warn' to work out where cleanup is required | ||
// Change 'off' to 'error' for show-stopper issues | ||
|
||
"@/no-undef": "off", | ||
|
||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-require-imports": "off", | ||
"@typescript-eslint/no-this-alias": "off", | ||
"@typescript-eslint/no-unused-expressions": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
|
||
"no-cond-assign": "off", | ||
"no-constant-binary-expression": "off", | ||
"no-constant-condition": "off", | ||
"no-empty": "off", | ||
"no-fallthrough": "off", | ||
"no-func-assign": "off", | ||
"no-prototype-builtins": "off", | ||
"no-redeclare": "off", | ||
"no-undef": "off", | ||
"no-unsafe-finally": "off", | ||
"no-unsafe-optional-chaining": "off", | ||
"no-useless-escape": "off", | ||
|
||
"node/no-unsupported-features/node-builtins": "off", | ||
|
||
"react/display-name": "off", | ||
}, | ||
} | ||
); |