Skip to content

Commit

Permalink
chore: Update code linting setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mountaindude committed Mar 8, 2023
1 parent a4acccd commit ab931f0
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 13 deletions.
25 changes: 16 additions & 9 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
env:
es6: true
es2021: true
node: true
es6: true
es2021: true
node: true
extends:
- airbnb-base
- prettier
- airbnb-base
- prettier
parserOptions:
ecmaVersion: 12
sourceType: module
ecmaVersion: 12
sourceType: module
rules:
prettier/prettier: error
prettier/prettier: error
plugins:
- prettier
- prettier
globals:
beforeAll: readonly
afterAll: readonly
describe: readonly
expect: readonly
test: readonly
it: readonly
19 changes: 19 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"esversion": 9,
"asi": false,
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"esnext": true,
"immed": true,
"latedef": false,
"laxcomma": false,
"mocha": true,
"newcap": true,
"noarg": true,
"node": true,
"sub": true,
"undef": true,
"unused": true
}
8 changes: 4 additions & 4 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
printWidth: 100
printWidth: 140
tabWidth: 4
useTabs: false
semi: true
singleQuote: true
trailingComma: "es5"
trailingComma: 'es5'
bracketSpacing: true
arrowParens: "always"
arrowParens: 'always'
requirePragma: false
insertPragma: false
insertPragma: false

0 comments on commit ab931f0

Please sign in to comment.