Skip to content

Commit f83634c

Browse files
committed
chore: update linter settings
1 parent 8e0db76 commit f83634c

File tree

5 files changed

+21
-31
lines changed

5 files changed

+21
-31
lines changed

.eslintrc.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
"use strict";
22

33
module.exports = {
4-
plugins: ["prettier"],
54
overrides: [
65
{
76
files: ["*.{ts,tsx}"],
87
extends: [
98
"@susisu/eslint-config/preset/ts-types",
10-
"prettier",
11-
"prettier/@typescript-eslint",
129
"plugin:eslint-comments/recommended",
10+
"prettier",
1311
],
1412
parserOptions: {
1513
ecmaVersion: 2019,
@@ -20,7 +18,6 @@ module.exports = {
2018
es6: true,
2119
},
2220
rules: {
23-
"prettier/prettier": "error",
2421
"eslint-comments/no-unused-disable": "error",
2522
},
2623
},
@@ -47,7 +44,6 @@ module.exports = {
4744
node: true,
4845
},
4946
rules: {
50-
"prettier/prettier": "error",
5147
"eslint-comments/no-unused-disable": "error",
5248
},
5349
},

.prettierrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
jsxSingleQuote: false,
1212
trailingComma: "es5",
1313
bracketSpacing: true,
14-
jsxBracketSameLine: false,
14+
bracketSameLine: false,
1515
arrowParens: "avoid",
1616
endOfLine: "lf",
1717
};

package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,26 @@
1212
"dist"
1313
],
1414
"scripts": {
15+
"lint": "run-s lint:eslint lint:prettier",
16+
"lint-fix": "run-s lint-fix:eslint lint-fix:prettier",
17+
"lint:eslint": "eslint '*.js' src",
18+
"lint-fix:eslint": "eslint --fix '*.js' src",
19+
"lint:prettier": "prettier --check '*.js' src",
20+
"lint-fix:prettier": "prettier --write '*.js' src",
1521
"typecheck": "tsc -p tsconfig.json --noEmit",
16-
"lint": "eslint src '*.js'",
17-
"lint-fix": "eslint --fix src '*.js'",
1822
"test": "jest",
1923
"build": "rollup -c",
2024
"clean": "rimraf dist",
2125
"prepublishOnly": "run-s clean lint test build"
2226
},
2327
"devDependencies": {
2428
"@susisu/eslint-config": "^0.0.42",
29+
"@types/jest": "^27.0.3",
2530
"eslint": "^8.5.0",
2631
"eslint-config-prettier": "^8.3.0",
2732
"eslint-plugin-eslint-comments": "^3.2.0",
2833
"eslint-plugin-jest": "^25.3.0",
2934
"eslint-plugin-jest-formatting": "^3.1.0",
30-
"eslint-plugin-prettier": "^4.0.0",
3135
"jest": "^27.4.5",
3236
"npm-run-all": "^4.1.5",
3337
"prettier": "^2.5.1",

src/gen.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const defaultGen = TFGen.seed(
1515
describe("TFGen", () => {
1616
describe(".seed", () => {
1717
it("should initialize a generator", () => {
18-
const seed: Int32x8 = [
18+
const seed: Int32x8 =
19+
/* prettier-ignore */ [
1920
0x00000000,
2021
0x00000000,
2122
0x01234567,

yarn.lock

+10-21
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,14 @@
623623
dependencies:
624624
"@types/istanbul-lib-report" "*"
625625

626+
"@types/jest@^27.0.3":
627+
version "27.0.3"
628+
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-27.0.3.tgz#0cf9dfe9009e467f70a342f0f94ead19842a783a"
629+
integrity sha512-cmmwv9t7gBYt7hNKH5Spu7Kuu/DotGa+Ff+JGRKZ4db5eh8PnKS4LuebJ3YLUoyOyIHraTGyULn23YtEAm0VSg==
630+
dependencies:
631+
jest-diff "^27.0.0"
632+
pretty-format "^27.0.0"
633+
626634
"@types/json-schema@^7.0.9":
627635
version "7.0.9"
628636
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d"
@@ -1336,13 +1344,6 @@ eslint-plugin-jest@^25.3.0:
13361344
dependencies:
13371345
"@typescript-eslint/experimental-utils" "^5.0.0"
13381346

1339-
eslint-plugin-prettier@^4.0.0:
1340-
version "4.0.0"
1341-
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz#8b99d1e4b8b24a762472b4567992023619cb98e0"
1342-
integrity sha512-98MqmCJ7vJodoQK359bqQWaxOE0CS8paAz/GgjaZLyex4TTk3g9HugoO89EqWCrFiOqn9EVvcoo7gZzONCWVwQ==
1343-
dependencies:
1344-
prettier-linter-helpers "^1.0.0"
1345-
13461347
eslint-scope@^5.1.1:
13471348
version "5.1.1"
13481349
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"
@@ -1505,11 +1506,6 @@ fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
15051506
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
15061507
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
15071508

1508-
fast-diff@^1.1.2:
1509-
version "1.2.0"
1510-
resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03"
1511-
integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==
1512-
15131509
fast-glob@^3.1.1:
15141510
version "3.2.7"
15151511
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.7.tgz#fd6cb7a2d7e9aa7a7846111e85a196d6b2f766a1"
@@ -2124,7 +2120,7 @@ jest-config@^27.4.5:
21242120
pretty-format "^27.4.2"
21252121
slash "^3.0.0"
21262122

2127-
jest-diff@^27.4.2:
2123+
jest-diff@^27.0.0, jest-diff@^27.4.2:
21282124
version "27.4.2"
21292125
resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.4.2.tgz#786b2a5211d854f848e2dcc1e324448e9481f36f"
21302126
integrity sha512-ujc9ToyUZDh9KcqvQDkk/gkbf6zSaeEg9AiBxtttXW59H/AcqEYp1ciXAtJp+jXWva5nAf/ePtSsgWwE5mqp4Q==
@@ -2963,19 +2959,12 @@ prelude-ls@~1.1.2:
29632959
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
29642960
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
29652961

2966-
prettier-linter-helpers@^1.0.0:
2967-
version "1.0.0"
2968-
resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b"
2969-
integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==
2970-
dependencies:
2971-
fast-diff "^1.1.2"
2972-
29732962
prettier@^2.5.1:
29742963
version "2.5.1"
29752964
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a"
29762965
integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==
29772966

2978-
pretty-format@^27.4.2:
2967+
pretty-format@^27.0.0, pretty-format@^27.4.2:
29792968
version "27.4.2"
29802969
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.4.2.tgz#e4ce92ad66c3888423d332b40477c87d1dac1fb8"
29812970
integrity sha512-p0wNtJ9oLuvgOQDEIZ9zQjZffK7KtyR6Si0jnXULIDwrlNF8Cuir3AZP0hHv0jmKuNN/edOnbMjnzd4uTcmWiw==

0 commit comments

Comments
 (0)