Skip to content

Commit

Permalink
chore: Add Prettier and ESlint
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Apr 1, 2018
1 parent 8fd7e8d commit dff3954
Show file tree
Hide file tree
Showing 6 changed files with 725 additions and 649 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sketchplugin
19 changes: 19 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"prettier"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
}
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sketchplugin
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"semi": false,
"trailingComma": "es5"
}
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"render:fr": "./scripts/config.sh lang fr && skpm-build --watch --run",
"render:once": "skpm-build --run",
"link-plugin": "skpm link",
"lint": "standard",
"lint:fix": "standard --fix",
"lint": "eslint .",
"format": "prettier --write '**/*.js'",
"github:fetch": "node ./scripts/fetch-github > ./data/mocks/github.json",
"pdf:metadata": "node ./scripts/add-pdf-metadata"
},
Expand All @@ -41,13 +41,17 @@
},
"devDependencies": {
"@skpm/builder": "^0.3.1",
"babel-eslint": "^8.2.2",
"concurrently": "^3.5.0",
"dist-exiftool": "^10.53.0",
"dotenv": "^4.0.0",
"eslint": "^4.19.1",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-react": "^7.7.0",
"node-exiftool": "^2.3.0",
"node-fetch": "^1.7.3",
"prettier": "^1.11.1",
"prop-types": "^15.5.10",
"serve": "^6.1.0",
"standard": "^10.0.3"
"serve": "^6.1.0"
}
}
Loading

0 comments on commit dff3954

Please sign in to comment.