Skip to content

Commit 82407e5

Browse files
committed
chore: readd deps and fix linting
1 parent b19b233 commit 82407e5

File tree

396 files changed

+21819
-17315
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

396 files changed

+21819
-17315
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
root = true
22

33
[*]
4-
indent_style = tab
4+
indent_style = space
55
indent_size = 4
66
charset = utf-8
77
trim_trailing_whitespace = true

.eslintignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@ test/**/main.js
1010
test/**/cliEntry.js
1111
test/**/foo.js
1212
test/binCases/config-location/webpack-babel-config/bin/es6.js
13-
packages/utils/validate-identifier.ts
13+
packages/**/*.js
14+
packages/utils/validate-identifier.ts
15+
16+
# TODO removeme
17+
18+
lib

.eslintrc.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
module.exports = {
2-
extends: ["eslint:recommended", "plugin:prettier/recommended"],
3-
plugins: ["prettier"],
2+
extends: ["eslint:recommended", 'plugin:@typescript-eslint/recommended', "plugin:prettier/recommended"],
43
env: {
54
node: true,
65
es6: true,
76
jest: true
87
},
8+
parser: '@typescript-eslint/parser',
9+
root: true,
10+
plugins: ["node"],
911
parserOptions: { ecmaVersion: 2017, sourceType: "module" },
1012
rules: {
1113
"no-useless-escape": "off",
1214
"quote-props": ["error", "as-needed"],
1315
"no-dupe-keys": "error",
14-
quotes: ["error", "double"],
1516
"no-undef": "error",
1617
"no-extra-semi": "error",
17-
semi: "error",
18+
"quotes": ["error", "single"],
19+
"prettier/prettier": ["error", { "singleQuote": true }],
20+
"quotemark": [
21+
true,
22+
"single"
23+
],
24+
"semi": "error",
1825
"no-template-curly-in-string": "error",
1926
"no-caller": "error",
20-
yoda: "error",
21-
eqeqeq: "error",
2227
"global-require": "off",
2328
"brace-style": "error",
2429
"key-spacing": "error",
2530
"space-in-parens": ["error", "never"],
2631
"space-infix-ops": "error",
27-
indent: ["error", "tab", { SwitchCase: 1 }],
2832
"no-extra-bind": "warn",
2933
"no-empty": "off",
3034
"no-multiple-empty-lines": "error",
@@ -39,6 +43,7 @@ module.exports = {
3943
"space-before-blocks": "error",
4044
"object-curly-spacing": ["error", "always"],
4145
"object-curly-newline": ["error", { consistent: true }],
46+
"@typescript-eslint/no-var-requires": "off",
4247
"keyword-spacing": [
4348
"error",
4449
{

.prettierrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"useTabs": true,
3-
"tabWidth": 4,
4-
"printWidth": 120
2+
"singleQuote": true,
3+
"trailingComma": "all"
54
}

bin/.eslintrc.js

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

0 commit comments

Comments
 (0)