Skip to content

Commit 84ff499

Browse files
authored
Merge pull request #35 from github/update-lint
Update linting in `remote-input-element`
2 parents a5ad729 + 14fc992 commit 84ff499

File tree

9 files changed

+6505
-2354
lines changed

9 files changed

+6505
-2354
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
dist
2+
**/node_modules/**
3+
test/karma.config.js

.eslintrc.json

+20-18
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
{
2+
"plugins": ["github"],
23
"extends": [
3-
"plugin:github/browser",
4-
"plugin:github/es6",
5-
"plugin:github/typescript"
4+
"plugin:github/recommended"
65
],
6+
"parser": "@typescript-eslint/parser",
77
"globals": {
8-
"RemoteInputElement": "readable"
8+
"RemoteInputElement": "readonly",
9+
"RequestInit": true
910
},
10-
"overrides": [
11-
{
12-
"files": "*.js",
13-
"parser": "espree",
14-
"parserOptions": {
15-
"ecmaVersion": "2020"
16-
}
17-
},
18-
{
19-
"files": "test/**/*.js",
20-
"rules": {
21-
"github/unescaped-html-literal": "off"
11+
"env": {
12+
"browser": true,
13+
"commonjs": true,
14+
"es6": true,
15+
"jest": true,
16+
"node": true
17+
},
18+
"rules": {
19+
"no-unused-vars": [
20+
"error",
21+
{
22+
"argsIgnorePattern": "^_",
23+
"varsIgnorePattern": "^_"
2224
}
23-
}
24-
]
25+
]
26+
}
2527
}

.github/workflows/pr.yml

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
- uses: actions/checkout@v4
1717
- name: Install dependencies
1818
run: npm ci
19+
- name: Run lint
20+
run: npm run lint
1921
- name: Run build
2022
run: npm run build
2123
- name: Run test

.prettierrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "none",
3+
"tabWidth": 2,
4+
"semi": false,
5+
"singleQuote": true
6+
}

0 commit comments

Comments
 (0)