Skip to content

Commit 31e2061

Browse files
committed
update pythonExtensionApi eslint config
1 parent 6d2766a commit 31e2061

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

pythonExtensionApi/.eslintrc

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import tseslint from '@typescript-eslint/eslint-plugin';
2+
import tsParser from '@typescript-eslint/parser';
3+
4+
export default [
5+
{
6+
files: ['**/main.d.ts'],
7+
languageOptions: {
8+
parser: tsParser,
9+
},
10+
plugins: {
11+
'@typescript-eslint': tseslint,
12+
},
13+
rules: {
14+
'@typescript-eslint/no-explicit-any': 'off',
15+
'padding-line-between-statements': ['error', { blankLine: 'always', prev: 'export', next: '*' }],
16+
},
17+
},
18+
];

pythonExtensionApi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"prepack": "npm run all:publish",
3636
"compile": "node ./node_modules/typescript/lib/tsc.js -b ./tsconfig.json",
3737
"clean": "node ../node_modules/rimraf/bin.js out",
38-
"lint": "node ../node_modules/eslint/bin/eslint.js --ext ts src",
38+
"lint": "node ../node_modules/eslint/bin/eslint.js",
3939
"all": "npm run clean && npm run compile",
4040
"formatTypings": "node ../node_modules/eslint/bin/eslint.js --fix ./out/main.d.ts",
4141
"all:publish": "git clean -xfd . && npm install && npm run compile && npm run formatTypings"

0 commit comments

Comments
 (0)