-
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
1 parent
b23c57b
commit ada1ac3
Showing
4 changed files
with
18 additions
and
39 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,34 +1,15 @@ | ||
import js from '@eslint/js' | ||
import jest from 'eslint-plugin-jest' | ||
import globals from 'globals' | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
|
||
/** @type {import('eslint').Linter.Config[]} */ | ||
export default [ | ||
{ ignores: ['dist'] }, | ||
{ | ||
files: ['**/*.{js,ts}'], | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
globals: globals.node, | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
ecmaFeatures: { jsx: true }, | ||
sourceType: 'module', | ||
}, | ||
}, | ||
rules: { | ||
...js.configs.recommended.rules, | ||
}, | ||
}, | ||
{ | ||
files: ['**/__tests__/**/*.test.{js,ts}'], | ||
plugins: { | ||
jest, | ||
}, | ||
languageOptions: { | ||
globals: jest.environments.globals.globals | ||
}, | ||
rules: { | ||
...jest.configs.recommended.rules, | ||
} | ||
} | ||
] | ||
{ languageOptions: { globals: globals.node } }, | ||
pluginJs.configs.recommended, | ||
{ | ||
rules: { | ||
camelcase: ["warn", { properties: "never", ignoreDestructuring: false }], | ||
"max-len": ["warn", { code: 140 }], | ||
"no-console": "warn", | ||
}, | ||
}, | ||
]; |
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