mirror of
https://github.com/maptiler/tileserver-gl.git
synced 2024-09-11 03:55:27 +03:00
* chore(deps-dev): bump @typescript-eslint/eslint-plugin Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.61.0 to 6.11.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.11.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix: warn for no-unused-vars,add argsIgnorePattern Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrew Calcutt <acalcutt@techidiots.net>
37 lines
891 B
JavaScript
37 lines
891 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
es6: true,
|
|
},
|
|
parserOptions: {
|
|
parser: '@typescript-eslint/parser',
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module',
|
|
lib: ['es2020'],
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
tsx: true,
|
|
},
|
|
},
|
|
plugins: ['prettier', 'jsdoc', 'security'],
|
|
extends: [
|
|
'prettier',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
'plugin:prettier/recommended',
|
|
'plugin:jsdoc/recommended',
|
|
'plugin:security/recommended',
|
|
],
|
|
// add your custom rules here
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'warn',
|
|
{ argsIgnorePattern: 'next|err|info|reject' },
|
|
],
|
|
},
|
|
};
|