-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable linting for extension (#1769)
* Enable linting for extension * Update lock file
- Loading branch information
1 parent
b934e80
commit fdce076
Showing
37 changed files
with
279 additions
and
522 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import eslint from '@eslint/js'; | ||
import react from 'eslint-plugin-react'; | ||
import { fixupPluginRules } from '@eslint/compat'; | ||
import eslintPluginReactHooks from 'eslint-plugin-react-hooks'; | ||
import jest from 'eslint-plugin-jest'; | ||
import eslintConfigPrettier from 'eslint-config-prettier'; | ||
|
||
export default [ | ||
{ | ||
files: ['test/**/*.js', 'test/**/*.jsx'], | ||
...eslint.configs.recommended, | ||
}, | ||
{ | ||
files: ['test/**/*.js', 'test/**/*.jsx'], | ||
...react.configs.flat.recommended, | ||
}, | ||
{ | ||
files: ['test/**/*.js', 'test/**/*.jsx'], | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['test/**/*.js', 'test/**/*.jsx'], | ||
plugins: { | ||
'react-hooks': fixupPluginRules(eslintPluginReactHooks), | ||
}, | ||
}, | ||
{ | ||
files: ['test/**/*.js', 'test/**/*.jsx'], | ||
...jest.configs['flat/recommended'], | ||
}, | ||
{ | ||
files: ['test/**/*.js', 'test/**/*.jsx'], | ||
...jest.configs['jest/style'], | ||
}, | ||
{ | ||
files: ['test/**/*.js', 'test/**/*.jsx'], | ||
...eslintConfigPrettier, | ||
}, | ||
]; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import globals from 'globals'; | ||
import eslintJs from '../eslint.js.config.base.mjs'; | ||
import eslintTsReact from '../eslint.ts.react.config.base.mjs'; | ||
import eslintJsReactJest from '../eslint.js.react.jest.config.base.mjs'; | ||
|
||
export default [ | ||
...eslintJs, | ||
...eslintTsReact(import.meta.dirname), | ||
...eslintJsReactJest, | ||
{ | ||
ignores: [ | ||
'chrome', | ||
'dist', | ||
'edge', | ||
'examples', | ||
'firefox', | ||
'test/electron/fixture/dist', | ||
], | ||
}, | ||
{ | ||
files: ['build.mjs'], | ||
languageOptions: { | ||
globals: { | ||
...globals.nodeBuiltin, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['test/**/*.js', 'test/**/*.jsx'], | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
EUI: true, | ||
}, | ||
}, | ||
}, | ||
]; |
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
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
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
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
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
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
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
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
Oops, something went wrong.