Skip to content

Commit

Permalink
chore: Add Prettier and update ESLint packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroschmitz committed Jan 21, 2021
1 parent 90beb35 commit 69e148d
Show file tree
Hide file tree
Showing 4 changed files with 1,006 additions and 859 deletions.
14 changes: 7 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
module.exports = {
env: {
es6: true,
node: true
node: true,
},
extends: [
'standard'
],
plugins: ['prettier'],
extends: ['standard', 'prettier'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2018
ecmaVersion: 2018,
},
rules: {
}
'prettier/prettier': 'error',
},
}
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"semi": false
}
20 changes: 12 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"scripts": {
"test:local": "node japaFile.js",
"test": "nyc npm run test:local",
"coverage": "nyc report --reporter=text-lcov | coveralls"
"coverage": "nyc report --reporter=text-lcov | coveralls",
"lint": "eslint --ignore-path .gitignore",
"format": "prettier \"**/*.js\" --write --ignore-path .gitignore"
},
"nyc": {
"exclude": [
Expand All @@ -32,14 +34,16 @@
"@adonisjs/sink": "^1.0.17",
"coveralls": "^3.0.7",
"delay": "^4.3.0",
"eslint": "^6.6.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^10.0.0",
"eslint": "^7.18.0",
"eslint-config-prettier": "^7.2.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"japa": "^3.0.1",
"nyc": "^14.1.1"
"nyc": "^14.1.1",
"prettier": "^2.2.1"
},
"repository": {
"type": "git",
Expand All @@ -55,4 +59,4 @@
"**/**/minimist": "^1.2.3",
"**/**/set-value": "^3.0.1"
}
}
}
Loading

0 comments on commit 69e148d

Please sign in to comment.