Skip to content

Commit

Permalink
Merge pull request #35 from github/update-lint
Browse files Browse the repository at this point in the history
Update linting in `remote-input-element`
  • Loading branch information
TylerJDev authored Apr 8, 2024
2 parents a5ad729 + 14fc992 commit 84ff499
Show file tree
Hide file tree
Showing 9 changed files with 6,505 additions and 2,354 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
dist
**/node_modules/**
test/karma.config.js
38 changes: 20 additions & 18 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
{
"plugins": ["github"],
"extends": [
"plugin:github/browser",
"plugin:github/es6",
"plugin:github/typescript"
"plugin:github/recommended"
],
"parser": "@typescript-eslint/parser",
"globals": {
"RemoteInputElement": "readable"
"RemoteInputElement": "readonly",
"RequestInit": true
},
"overrides": [
{
"files": "*.js",
"parser": "espree",
"parserOptions": {
"ecmaVersion": "2020"
}
},
{
"files": "test/**/*.js",
"rules": {
"github/unescaped-html-literal": "off"
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"rules": {
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
}
]
]
}
}
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Run lint
run: npm run lint
- name: Run build
run: npm run build
- name: Run test
Expand Down
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "none",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
Loading

0 comments on commit 84ff499

Please sign in to comment.