Skip to content

Commit 68af85d

Browse files
committed
Use more strict linter
1 parent 417d9dd commit 68af85d

138 files changed

Lines changed: 3041 additions & 1564 deletions

File tree

Some content is hidden

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

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
out/*
22
jest.config.js
33
build.js
4+
set-client-id.js

.eslintrc

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,41 @@
11
{
22
"root": true,
3-
"parser": "@typescript-eslint/parser",
4-
"plugins": [
5-
"@typescript-eslint"
6-
],
73
"extends": [
8-
"eslint:recommended",
9-
"plugin:@typescript-eslint/recommended"
4+
"airbnb",
5+
"airbnb-typescript"
106
],
7+
"parserOptions": {
8+
"project": "./tsconfig.json"
9+
},
1110
"env": {
1211
"node": true
1312
},
13+
"settings": {
14+
"react": {
15+
"version": "18"
16+
}
17+
},
1418
"rules": {
1519
"indent": ["error", 2],
16-
"quotes": ["error", "double"],
20+
"quotes": ["error", "double", { "avoidEscape": true }],
1721
"semi": ["error", "always"],
18-
"no-multi-spaces": ["error", { "ignoreEOLComments": true }]
22+
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
23+
"max-len": ["error", { "code": 150 }],
24+
"no-alert": "off",
25+
"no-console": "off",
26+
"implicit-arrow-linebreak": ["off"],
27+
"react/react-in-jsx-scope": ["off"],
28+
"react/require-default-props": ["off"],
29+
"react/function-component-definition": [
30+
"error",
31+
{
32+
"namedComponents": "arrow-function",
33+
"unnamedComponents": "arrow-function"
34+
}
35+
],
36+
"jsx-a11y/no-autofocus": ["off"],
37+
"jsx-a11y/click-events-have-key-events": ["off"],
38+
"jsx-a11y/no-static-element-interactions": ["off"],
39+
"@typescript-eslint/quotes": ["error", "double", { "avoidEscape": true }]
1940
}
2041
}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.DS_Store
2+
.vscode
23
node_modules/
34
out/
4-

env/set-client-id.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (!clientId) {
88
return;
99
}
1010

11-
const fs = require("fs"); // eslint-disable-line
11+
const fs = require("fs");
1212
const manifestContent = JSON.parse(fs.readFileSync(manifestPath, "utf8"));
1313
manifestContent.oauth2.client_id = clientId;
1414
fs.writeFileSync(manifestPath, JSON.stringify(manifestContent, null, 2));

0 commit comments

Comments
 (0)