Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update linting in remote-input-element #35

Merged
merged 5 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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