Skip to content

Commit 6ba6466

Browse files
committed
add equivalent eslint config for linting
1 parent 63de9cd commit 6ba6466

File tree

6 files changed

+77
-54
lines changed

6 files changed

+77
-54
lines changed

.eslintrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
parser: "@typescript-eslint/parser",
3+
env: {
4+
node: true,
5+
es2020: true,
6+
},
7+
extends: ["xo/esnext", "xo-plugins/config/plugins"],
8+
plugins: ["@typescript-eslint"],
9+
};

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLinters/eslint.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"eslint": "^7.7.0",
2828
"eslint-config-prettier": "^6.11.0",
2929
"eslint-config-xo": "^0.32.1",
30+
"eslint-config-xo-plugins": "npm:xo@^0.33.0",
3031
"eslint-config-xo-typescript": "^0.32.0",
3132
"eslint-formatter-compassion": "^1.1.2",
3233
"eslint-import-resolver-typescript": "^2.2.1",

yarn.lock

Lines changed: 54 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,6 +1563,7 @@ __metadata:
15631563
eslint: ^7.7.0
15641564
eslint-config-prettier: ^6.11.0
15651565
eslint-config-xo: ^0.32.1
1566+
eslint-config-xo-plugins: "npm:xo@^0.33.0"
15661567
eslint-config-xo-typescript: ^0.32.0
15671568
eslint-formatter-compassion: ^1.1.2
15681569
eslint-import-resolver-typescript: ^2.2.1
@@ -1844,6 +1845,59 @@ __metadata:
18441845
languageName: node
18451846
linkType: hard
18461847

1848+
"eslint-config-xo-plugins@npm:xo@^0.33.0, xo@npm:^0.33.0":
1849+
version: 0.33.0
1850+
resolution: "xo@npm:0.33.0"
1851+
dependencies:
1852+
"@typescript-eslint/eslint-plugin": ^3.9.0
1853+
"@typescript-eslint/parser": ^3.9.0
1854+
arrify: ^2.0.1
1855+
cosmiconfig: ^7.0.0
1856+
debug: ^4.1.1
1857+
eslint: ^7.6.0
1858+
eslint-config-prettier: ^6.11.0
1859+
eslint-config-xo: ^0.32.1
1860+
eslint-config-xo-typescript: ^0.32.0
1861+
eslint-formatter-pretty: ^4.0.0
1862+
eslint-import-resolver-webpack: ^0.12.1
1863+
eslint-plugin-ava: ^10.5.0
1864+
eslint-plugin-eslint-comments: ^3.2.0
1865+
eslint-plugin-import: ^2.20.2
1866+
eslint-plugin-no-use-extend-native: ^0.5.0
1867+
eslint-plugin-node: ^11.1.0
1868+
eslint-plugin-prettier: ^3.1.3
1869+
eslint-plugin-promise: ^4.2.1
1870+
eslint-plugin-unicorn: ^21.0.0
1871+
find-cache-dir: ^3.3.1
1872+
find-up: ^4.1.0
1873+
fs-extra: ^9.0.0
1874+
get-stdin: ^8.0.0
1875+
globby: ^9.0.0
1876+
has-flag: ^4.0.0
1877+
imurmurhash: ^0.1.4
1878+
is-path-inside: ^3.0.2
1879+
json-stable-stringify-without-jsonify: ^1.0.1
1880+
json5: ^2.1.3
1881+
lodash: ^4.17.19
1882+
meow: ^7.0.1
1883+
micromatch: ^4.0.2
1884+
open-editor: ^2.0.1
1885+
p-reduce: ^2.1.0
1886+
path-exists: ^4.0.0
1887+
prettier: 2.0.4
1888+
resolve-cwd: ^3.0.0
1889+
resolve-from: ^5.0.0
1890+
semver: ^7.3.2
1891+
slash: ^3.0.0
1892+
to-absolute-glob: ^2.0.2
1893+
typescript: ^3.9.7
1894+
update-notifier: ^4.1.0
1895+
bin:
1896+
xo: cli.js
1897+
checksum: e2778967ac978929e2fc8234205c2521bcf725387bcbf48769ad0b4c9a7edf7938b7fb6b6335ca41720726d847884a4204c1064f44ba6f19a7694029bceed589
1898+
languageName: node
1899+
linkType: hard
1900+
18471901
"eslint-config-xo-typescript@npm:^0.32.0":
18481902
version: 0.32.0
18491903
resolution: "eslint-config-xo-typescript@npm:0.32.0"
@@ -6409,59 +6463,6 @@ typescript@^4.0.2:
64096463
languageName: node
64106464
linkType: hard
64116465

6412-
"xo@npm:^0.33.0":
6413-
version: 0.33.0
6414-
resolution: "xo@npm:0.33.0"
6415-
dependencies:
6416-
"@typescript-eslint/eslint-plugin": ^3.9.0
6417-
"@typescript-eslint/parser": ^3.9.0
6418-
arrify: ^2.0.1
6419-
cosmiconfig: ^7.0.0
6420-
debug: ^4.1.1
6421-
eslint: ^7.6.0
6422-
eslint-config-prettier: ^6.11.0
6423-
eslint-config-xo: ^0.32.1
6424-
eslint-config-xo-typescript: ^0.32.0
6425-
eslint-formatter-pretty: ^4.0.0
6426-
eslint-import-resolver-webpack: ^0.12.1
6427-
eslint-plugin-ava: ^10.5.0
6428-
eslint-plugin-eslint-comments: ^3.2.0
6429-
eslint-plugin-import: ^2.20.2
6430-
eslint-plugin-no-use-extend-native: ^0.5.0
6431-
eslint-plugin-node: ^11.1.0
6432-
eslint-plugin-prettier: ^3.1.3
6433-
eslint-plugin-promise: ^4.2.1
6434-
eslint-plugin-unicorn: ^21.0.0
6435-
find-cache-dir: ^3.3.1
6436-
find-up: ^4.1.0
6437-
fs-extra: ^9.0.0
6438-
get-stdin: ^8.0.0
6439-
globby: ^9.0.0
6440-
has-flag: ^4.0.0
6441-
imurmurhash: ^0.1.4
6442-
is-path-inside: ^3.0.2
6443-
json-stable-stringify-without-jsonify: ^1.0.1
6444-
json5: ^2.1.3
6445-
lodash: ^4.17.19
6446-
meow: ^7.0.1
6447-
micromatch: ^4.0.2
6448-
open-editor: ^2.0.1
6449-
p-reduce: ^2.1.0
6450-
path-exists: ^4.0.0
6451-
prettier: 2.0.4
6452-
resolve-cwd: ^3.0.0
6453-
resolve-from: ^5.0.0
6454-
semver: ^7.3.2
6455-
slash: ^3.0.0
6456-
to-absolute-glob: ^2.0.2
6457-
typescript: ^3.9.7
6458-
update-notifier: ^4.1.0
6459-
bin:
6460-
xo: cli.js
6461-
checksum: e2778967ac978929e2fc8234205c2521bcf725387bcbf48769ad0b4c9a7edf7938b7fb6b6335ca41720726d847884a4204c1064f44ba6f19a7694029bceed589
6462-
languageName: node
6463-
linkType: hard
6464-
64656466
"xtend@npm:^4.0.0":
64666467
version: 4.0.2
64676468
resolution: "xtend@npm:4.0.2"

0 commit comments

Comments
 (0)