-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update eslint - Update webpack and eslint-webpack-plugin - Update the eslint config file to the new format Signed-off-by: David Thompson <[email protected]>
- Loading branch information
Showing
12 changed files
with
1,008 additions
and
827 deletions.
There are no files selected for viewing
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,44 @@ | ||
// @ts-check | ||
|
||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import globals from "globals"; | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
tseslint.configs.recommended, | ||
{ | ||
ignores: [ | ||
"node_modules/**", | ||
"dist/**", | ||
"server/**", | ||
"out/**", | ||
], | ||
}, | ||
{ | ||
files: [ "src/**/*" ], | ||
rules: { | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"argsIgnorePattern": "^_", | ||
"caughtErrorsIgnorePattern": "^_" | ||
} | ||
], | ||
"@typescript-eslint/no-explicit-any": "warn", | ||
} | ||
}, { | ||
files: [ | ||
"gulpfile.js", | ||
"webpack.config.js" | ||
], | ||
languageOptions: { | ||
sourceType: "commonjs", | ||
globals: globals.node | ||
}, | ||
rules: { | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/no-require-imports": "off" | ||
} | ||
} | ||
); |
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.