Skip to content

Commit

Permalink
Add linting for unsupported browser APIs (withfig#557)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Schrage <[email protected]>
  • Loading branch information
mschrage and fig-io authored Sep 3, 2021
1 parent 7748e2b commit 7aeee1f
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ module.exports = {
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:fig-linter/recommended",
"plugin:compat/recommended",
],
env: {
browser: true,
},
plugins: ["fig-linter"],
rules: {
"@typescript-eslint/explicit-module-boundary-types": 0,
Expand Down
125 changes: 125 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.27.1",
"description": "Fig Autocomplete Spec Linter",
"schemaVersion": "v7",
"browserslist": [
"safari >=11"
],
"scripts": {
"dev": "\"$npm_execpath\" run build && source scripts/dev.sh",
"test": "tsc --noEmit && echo 'All specs passed validation. You are ready to push!'",
Expand Down Expand Up @@ -76,6 +79,7 @@
"esbuild": "^0.12.15",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-compat": "^3.13.0",
"eslint-plugin-fig-linter": "file:scripts/eslint-plugin-fig-linter",
"eslint-plugin-prettier": "^3.3.1",
"fast-glob": "^3.2.7",
Expand Down

0 comments on commit 7aeee1f

Please sign in to comment.