Skip to content

Commit

Permalink
feat: upgrade all configs
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Sep 2, 2023
1 parent 81d6591 commit 52ed371
Show file tree
Hide file tree
Showing 8 changed files with 1,209 additions and 661 deletions.
1,829 changes: 1,197 additions & 632 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions projects/eslint-plugin-experience/configs/base/base.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
module.exports = {
extends: ['eslint-config-airbnb-base', 'plugin:eslint-comments/recommended'],

parser: '@babel/eslint-parser',

settings: {
'import/parser': '@babel/eslint-parser',
},
plugins: ['@babel'],

parserOptions: {
ecmaFeatures: {
legacyDecorators: true,
},
requireConfigFile: false,
},

rules: {
'no-unused-expressions': [
'error',
Expand Down
2 changes: 0 additions & 2 deletions projects/eslint-plugin-experience/configs/base/import.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
plugins: ['import'],

settings: {
'import/resolver': {
node: {
Expand All @@ -10,7 +9,6 @@ module.exports = {
webpack: {},
},
},

rules: {
'import/no-commonjs': 'off',
'import/unambiguous': 'off',
Expand Down
2 changes: 1 addition & 1 deletion projects/eslint-plugin-experience/configs/base/prettier.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ['plugin:prettier/recommended'],
extends: ['prettier'],
};
1 change: 0 additions & 1 deletion projects/eslint-plugin-experience/configs/base/promise.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
extends: ['plugin:promise/recommended'],

rules: {
'promise/always-return': 'off',
'promise/no-callback-in-promise': 'off',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module.exports = {
overrides: [
{
files: ['*.spec.*', '*.test.*', '*.unit.*', '*/__tests__/*'],

rules: {
'@typescript-eslint/no-empty-function': 'off',
'max-statements': 'off',
Expand Down
11 changes: 1 addition & 10 deletions projects/eslint-plugin-experience/configs/base/typescript.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
module.exports = {
extends: ['plugin:@typescript-eslint/eslint-recommended'],

overrides: [
{
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:import/typescript',
],

extends: ['prettier'],
parser: '@typescript-eslint/parser',

plugins: ['@typescript-eslint'],

files: ['*.ts', '*.tsx'],

rules: {
// swears on cases like constructor(public c: C) {}
'no-useless-constructor': 'off',
Expand Down
20 changes: 10 additions & 10 deletions projects/eslint-plugin-experience/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@
"@babel/eslint-plugin": "7.22.10",
"@html-eslint/eslint-plugin": "0.19.1",
"@html-eslint/parser": "0.19.1",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-config-prettier": "6.15.0",
"eslint-import-resolver-typescript": "2.7.1",
"@typescript-eslint/eslint-plugin": "6.5.0",
"@typescript-eslint/parser": "6.5.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-prettier": "9.0.0",
"eslint-import-resolver-typescript": "3.6.0",
"eslint-import-resolver-webpack": "0.13.7",
"eslint-plugin-decorator-position": "5.0.2",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-file-progress": "1.3.0",
"eslint-plugin-html": "7.1.0",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-jest": "26.9.0",
"eslint-plugin-jest": "27.2.3",
"eslint-plugin-perfectionist": "1.5.1",
"eslint-plugin-prettier": "3.4.1",
"eslint-plugin-promise": "4.3.1",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-rxjs": "5.0.3",
"eslint-plugin-rxjs-angular": "2.0.1",
"eslint-plugin-simple-import-sort": "7.0.0",
"eslint-plugin-simple-import-sort": "10.0.0",
"eslint-plugin-sort-class-members": "1.18.0",
"eslint-plugin-unicorn": "44.0.2"
"eslint-plugin-unicorn": "48.0.1"
},
"peerDependencies": {
"eslint": ">=8.0.0",
Expand Down

0 comments on commit 52ed371

Please sign in to comment.