Skip to content

Commit

Permalink
fix: update eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
qarlosalberto committed Oct 20, 2024
1 parent a643a5a commit 2f0d12b
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 100 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

25 changes: 0 additions & 25 deletions .eslintrc

This file was deleted.

27 changes: 0 additions & 27 deletions .eslintrc copy

This file was deleted.

2 changes: 1 addition & 1 deletion auto_package/script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
command: "npm run-script copy-files & npm run-script build-webviews & npm run-script build-webviews-configuration & tsc -p ./"

- name: "lint"
command: "eslint src --ext ts"
command: "eslint src"

- name: "watch"
command: npm run-script copy-files & tsc --watch --p ./tsconfig.json & nodemon --ignore 'resources/webviews/reporters/**/wb/' --watch resources/webviews/reporters -e js,ts,tsx,html --exec \"npm run-script build-webviews\"
Expand Down
42 changes: 0 additions & 42 deletions copy_files2.py

This file was deleted.

33 changes: 33 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
const parser = require('@typescript-eslint/parser');
const eslintPlugin = require('@typescript-eslint/eslint-plugin');

module.exports = {
languageOptions: {
parser: parser,
ecmaVersion: 6,
sourceType: 'module'
},
plugins: {
'@typescript-eslint': eslintPlugin,
},
files: ["src/**/*.ts"],
ignores: [
'node_modules',
'build',
'src/formatter/bin',
'tmp',
],
rules: {
'no-console': 'warn',
'curly': 'warn',
'eqeqeq': 'warn',
'no-throw-literal': 'warn',
'semi': 'warn',
'max-len': [
'warn',
{
code: 120
}
]
}
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@
"clean": "shx rm -rf out",
"vscode:prepublish": "npm run generate-examples & npm run compile",
"compile": "npm run-script copy-files & npm run-script build-webviews & npm run-script build-webviews-configuration & tsc -p ./",
"lint": "eslint src --ext ts",
"lint": "eslint src",
"watch": "npm run-script copy-files & tsc --watch --p ./tsconfig.json & nodemon --ignore 'resources/webviews/reporters/**/wb/' --watch resources/webviews/reporters -e js,ts,tsx,html --exec \"npm run-script build-webviews\"",
"generate-examples": "cd ./resources/project_manager; ./copy_examples.sh",
"pre-package": "mkdir ./node_modules/teroshdl2/node_modules/onml/lib; cp ./node_modules/teroshdl2/node_modules/onml/*.js ./node_modules/teroshdl2/node_modules/onml/lib",
Expand Down

0 comments on commit 2f0d12b

Please sign in to comment.