-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update eslint * fix: use correct prettier config in npm command
- Loading branch information
1 parent
7550bd5
commit c356e32
Showing
10 changed files
with
257 additions
and
245 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// @ts-check | ||
|
||
import tseslint from 'typescript-eslint' | ||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended' | ||
|
||
export default tseslint.config( | ||
// base configuration | ||
{ | ||
files: ['**/*.ts'], | ||
ignores: ['./lib'], | ||
languageOptions: { | ||
globals: { | ||
page: true, | ||
browser: true, | ||
context: true | ||
} | ||
} | ||
}, | ||
|
||
// setup typescript rules | ||
...tseslint.configs.recommended, | ||
|
||
// setup prettier, includes eslint-config-prettier | ||
eslintPluginPrettierRecommended, | ||
|
||
// custom rules | ||
{ | ||
rules: { | ||
'object-curly-spacing': 'off', | ||
'@typescript-eslint/ban-types': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/member-delimiter-style': 'off', | ||
'@typescript-eslint/no-use-before-define': 'off' | ||
} | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.