Skip to content

Commit 8f301ef

Browse files
upgrade eslint-config-oclif-typescript
1 parent f087a7e commit 8f301ef

3 files changed

Lines changed: 416 additions & 594 deletions

File tree

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
1+
import js from '@eslint/js';
12
import tseslint from 'typescript-eslint';
23
import globals from 'globals';
3-
import oclif from 'eslint-config-oclif';
4-
import oclifTypescript from 'eslint-config-oclif-typescript';
54

65
export default [
7-
...tseslint.configs.recommended,
8-
oclif,
9-
oclifTypescript,
10-
116
{
12-
ignores: [
13-
'lib/**/*',
14-
],
7+
ignores: ['lib/**/*', 'test/**/*', 'bin/*'],
158
},
16-
179
{
10+
files: ['src/**/*.ts'],
1811
languageOptions: {
1912
parser: tseslint.parser,
2013
parserOptions: {
@@ -25,25 +18,19 @@ export default [
2518
...globals.node,
2619
},
2720
},
28-
2921
plugins: {
3022
'@typescript-eslint': tseslint.plugin,
3123
},
32-
3324
rules: {
34-
'unicorn/prefer-module': 'off',
25+
...js.configs.recommended.rules,
26+
...tseslint.configs.recommended[1].rules,
3527
'@typescript-eslint/no-require-imports': 'off',
36-
'unicorn/no-array-for-each': 'off',
37-
camelcase: 'off',
28+
'camelcase': 'off',
3829
'@typescript-eslint/no-unused-vars': 'error',
39-
quotes: ['error', 'single', { avoidEscape: true }],
40-
semi: ['error', 'never'],
41-
'unicorn/import-style': 'off',
42-
'unicorn/prefer-node-protocol': 'off',
43-
'unicorn/consistent-function-scoping': 'off',
30+
'quotes': ['error', 'single', { avoidEscape: true }],
31+
'semi': ['error', 'never'],
4432
'@typescript-eslint/ban-ts-comment': 'off',
4533
'object-curly-spacing': ['error', 'never'],
46-
'node/no-missing-import': 'off',
4734
},
4835
},
4936
];

packages/contentstack-cli-cm-regex-validate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"chai": "^4.5.0",
1919
"eslint": "^10.5.0",
2020
"eslint-config-oclif": "^4.0.0",
21-
"eslint-config-oclif-typescript": "^1.0.3",
21+
"eslint-config-oclif-typescript": "^3.1.14",
2222
"eslint-plugin-unicorn": "^48.0.1",
2323
"globby": "^11.1.0",
2424
"husky": "^9.1.7",

0 commit comments

Comments
 (0)