Skip to content

Commit 5a5109c

Browse files
committed
updated eslint config
1 parent ea636b1 commit 5a5109c

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

.eslintrc.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
parser: "@typescript-eslint/parser",
3+
parserOptions: {
4+
ecmaVersion: 2020,
5+
sourceType: "module",
6+
},
7+
plugins: ["@typescript-eslint"],
8+
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
9+
rules: {
10+
"unicorn/prefer-module": "off",
11+
"unicorn/no-abusive-eslint-disable": "off",
12+
"@typescript-eslint/no-use-before-define": "off",
13+
"node/no-missing-import": "off",
14+
},
15+
};

.eslintrc.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"repository": "Contentstack-Solutions/contentstack-cli-tsgen",
5252
"scripts": {
5353
"postpack": "rm -f oclif.manifest.json",
54-
"posttest": "eslint . --ext .ts --config .eslintrc.json --fix",
54+
"posttest": "eslint . --ext .ts --config .eslintrc --fix",
5555
"prepack": "rm -rf lib && tsc -b && oclif manifest && oclif readme",
5656
"test": "jest --testPathPattern=tests",
5757
"version": "oclif readme && git add README.md",

0 commit comments

Comments
 (0)