Skip to content

Commit

Permalink
Merge pull request #45 from dabapps/fix-eslint-prettier-config
Browse files Browse the repository at this point in the history
Extend eslint rules with prettier
  • Loading branch information
Nikolaev Tomov authored Sep 7, 2018
2 parents c248507 + bd45646 commit 79e9330
Show file tree
Hide file tree
Showing 14 changed files with 1,447 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.10.2
10.5.0
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "es5"
}
5 changes: 1 addition & 4 deletions base/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"extends": [
"prettier"
],
"plugins": [
"prettier"
"plugin:prettier/recommended"
],
"rules": {
"strict": [2, "global"],
Expand Down
5 changes: 4 additions & 1 deletion browser/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "../base/.eslintrc.json",
"extends": [
"../base/.eslintrc.json",
"plugin:prettier/recommended"
],
"globals": {
"window": false,
"performance": false,
Expand Down
5 changes: 4 additions & 1 deletion commonjs/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "../base/.eslintrc.json",
"extends": [
"../base/.eslintrc.json",
"plugin:prettier/recommended"
],
"env": {
"commonjs": true
}
Expand Down
5 changes: 4 additions & 1 deletion es6/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "../base/.eslintrc.json",
"extends": [
"../base/.eslintrc.json",
"plugin:prettier/recommended"
],
"env": {
"es6": true
},
Expand Down
5 changes: 4 additions & 1 deletion jest/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "../base/.eslintrc.json",
"extends": [
"../base/.eslintrc.json",
"plugin:prettier/recommended"
],
"env": {
"jasmine": true,
"jest": true
Expand Down
5 changes: 4 additions & 1 deletion mocha/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "../base/.eslintrc.json",
"extends": [
"../base/.eslintrc.json",
"plugin:prettier/recommended"
],
"env": {
"mocha": true
}
Expand Down
5 changes: 4 additions & 1 deletion node/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "../base/.eslintrc.json",
"extends": [
"../base/.eslintrc.json",
"plugin:prettier/recommended"
],
"env": {
"node": true
}
Expand Down
Loading

0 comments on commit 79e9330

Please sign in to comment.