Skip to content

Commit

Permalink
[WIP] bump eslint from 8.57.0 to 9.0.0 (#965)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump eslint from 8.57.0 to 9.0.0
* chore: migrate to eslint 9
* chore: format all files by prettier
* chore: eslint rules
* chore: remove vulnerable regex
  • Loading branch information
dependabot[bot] authored Apr 10, 2024
1 parent c66993f commit 6a808d7
Show file tree
Hide file tree
Showing 256 changed files with 9,784 additions and 7,212 deletions.
5 changes: 5 additions & 0 deletions .changeset/rare-items-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@koopjs/featureserver": patch
---

- remove regex and replace with trim
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 2,
"useTabs": false
"useTabs": false,
"endOfLine": "lf"
}
23 changes: 14 additions & 9 deletions .eslintrc.js → eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
const noOnlyTests = require('eslint-plugin-no-only-tests');
const prettier = require('eslint-plugin-prettier');

module.exports = {
env: {
languageOptions: {
globals: {
commonjs: true,
es6: true,
mocha: true,
jest: true,
jasmine: true,
node: true,
},
extends: 'eslint:recommended',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
process: 'readonly',
Expand All @@ -18,13 +19,17 @@ module.exports = {
parserOptions: {
ecmaVersion: 2022,
},
},

rules: {
'no-unused-vars': ['error', { ignoreRestSiblings: true }],
indent: ['error', 2, { SwitchCase: 1 }],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'semi': ['error', 'always'],
'prettier/prettier': ['error', {endOfLine: 'auto'}],
'no-only-tests/no-only-tests': 'error',
//'linebreak-style': ['error', 'unix'],
},
plugins: {
'no-only-tests': noOnlyTests,
'prettier': prettier
},
plugins: ['no-only-tests'],
};
Loading

0 comments on commit 6a808d7

Please sign in to comment.