Skip to content

Commit

Permalink
Update rules/dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiorgis Gozadinos committed Mar 23, 2021
1 parent 0b789d3 commit 0d7a144
Show file tree
Hide file tree
Showing 8 changed files with 2,101 additions and 1,890 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm test
- run: yarn
- run: yarn test

publish-npm:
name: Publish
Expand All @@ -27,7 +27,7 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: yarn
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ This enables several rules:

* Assume a `browser` environment in all files
* The recommended rules from [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react)
* Enable the `prettier/react` rules


## Command-line tools
Expand Down
1,841 changes: 0 additions & 1,841 deletions package-lock.json

This file was deleted.

83 changes: 42 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,44 @@
{
"name": "eslint-config-crypho",
"version": "1.9.0",
"description": "Crypho eslint configuration",
"main": "recommended.js",
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/Crypho/eslint-config-crypho.git"
},
"keywords": [
"eslint"
],
"prettier": "crypho-prettier",
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/Crypho/eslint-config-crypho/issues"
},
"homepage": "https://github.com/Crypho/eslint-config-crypho#readme",
"scripts": {
"test": "eslint *.js"
},
"peerDependencies": {
"eslint": ">= 3"
},
"optionalDependencies": {
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0",
"eslint-plugin-react-native": "^3.8.1"
},
"dependencies": {
"babel-eslint": "^10.1.0",
"crypho-prettier": "^1.1.1",
"eslint": ">=6",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-unicorn": "^18.0.1",
"prettier": "^2.0.2"
"name": "eslint-config-crypho",
"version": "1.10.0",
"description": "Crypho eslint configuration",
"main": "recommended.js",
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/Crypho/eslint-config-crypho.git"
},
"keywords": [
"eslint"
],
"prettier": "crypho-prettier",
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/Crypho/eslint-config-crypho/issues"
},
"homepage": "https://github.com/Crypho/eslint-config-crypho#readme",
"scripts": {
"test": "eslint *.js"
},
"peerDependencies": {
"eslint": ">=6"
},
"optionalDependencies": {
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"eslint-plugin-react-native": "^3.10.0"
},
"dependencies": {
"babel-eslint": "^10.1.0",
"crypho-prettier": "^1.1.1",
"eslint": "^6.5.1",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-unicorn": "^28.0.2",
"prettier": "^2.2.1"
}
}
}
2 changes: 1 addition & 1 deletion react-native.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
extends: ['plugin:react/recommended', 'prettier/react', 'plugin:react-native/all'],
extends: ['plugin:react/recommended', 'plugin:react-native/all'],
plugins: ['react', 'react-native', 'babel'],
env: {
es6: true,
Expand Down
2 changes: 1 addition & 1 deletion react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
extends: ['plugin:react/recommended', 'prettier/react'],
extends: ['plugin:react/recommended', 'prettier'],
plugins: ['react', 'babel'],
env: {
es6: true,
Expand Down
3 changes: 1 addition & 2 deletions recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ module.exports = {
'plugin:prettier/recommended',
'eslint:recommended',
'prettier',
'prettier/babel',
'prettier/unicorn',
],
plugins: ['promise', 'unicorn', 'prettier'],
parserOptions: {
Expand All @@ -21,6 +19,7 @@ module.exports = {
'comma-dangle': ['error', 'always-multiline'],
'unicorn/prevent-abbreviations': 0,
'unicorn/filename-case': 'off',
'unicorn/no-null': 'off',
},
overrides: [
{
Expand Down
Loading

0 comments on commit 0d7a144

Please sign in to comment.