Skip to content

Commit

Permalink
[eslint] add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 12, 2022
1 parent c8f7ac5 commit 592fe17
Show file tree
Hide file tree
Showing 5 changed files with 215 additions and 158 deletions.
34 changes: 34 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"root": true,

"extends": "@ljharb",

"rules": {
"camelcase": 1,
"func-name-matching": 1,
"func-style": [2, "declaration"],
"indent": [2, 2],
"max-lines": 0,
"max-lines-per-function": 0,
"max-statements": 0,
"max-statements-per-line": 1,
"multiline-comment-style": 0,
"new-cap": 1,
"no-mixed-operators": 1,
"no-param-reassign": 1,
"no-restricted-properties": 1,
"no-restricted-syntax": 1,
"no-underscore-dangle": 1,
"sort-keys": 0,
"strict": 1,
},

"overrides": [
{
"files": "example/**",
"rules": {
"no-console": 0,
},
},
],
}
Loading

0 comments on commit 592fe17

Please sign in to comment.