Skip to content

Commit

Permalink
chore: updated linting, bump deps, node >= 14
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jun 6, 2022
1 parent ee02581 commit d4c1cd3
Show file tree
Hide file tree
Showing 13 changed files with 527 additions and 6,527 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
};
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@
*.log
.idea
node_modules
coverage
.nyc_output
locales/
package-lock.json
yarn.lock

Thumbs.db
tmp/
temp/
*.lcov
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged && npm test
5 changes: 5 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
"*.md": filenames => filenames.map(filename => `remark ${filename} -qfo`),
'package.json': 'fixpack',
'*.js': 'xo --fix'
};
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
5 changes: 5 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
singleQuote: true,
bracketSpacing: true,
trailingComma: 'none'
};
3 changes: 3 additions & 0 deletions .remarkrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: ['preset-github']
};
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
npm install -D eslint-config-xo-lass
```

[yarn][]:

```sh
yarn add -D eslint-config-xo-lass
```


## Usage

Expand All @@ -52,8 +46,6 @@ Add `xo-lass` in the "extends" block of your ESLint or XO config.

[npm]: https://www.npmjs.com/

[yarn]: https://yarnpkg.com/

[shareable-config]: http://eslint.org/docs/developer-guide/shareable-configs.html

[lass]: https://lass.js.org
Expand Down
28 changes: 0 additions & 28 deletions index.js

This file was deleted.

96 changes: 18 additions & 78 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,26 @@
"url": "https://github.com/lassjs/eslint-config-xo-lass/issues",
"email": "niftylettuce@gmail.com"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"contributors": [
"Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)"
],
"dependencies": {},
"devDependencies": {
"@commitlint/cli": "latest",
"@commitlint/config-conventional": "latest",
"cross-env": "latest",
"eslint": "latest",
"eslint-config-prettier": "latest",
"eslint-plugin-prettier": "latest",
"fixpack": "latest",
"husky": "latest",
"lint-staged": "latest",
"prettier": "latest",
"remark-cli": "latest",
"remark-preset-github": "latest",
"xo": "latest"
},
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"cross-env": "^7.0.3",
"husky": "^8.0.1",
"lint-staged": "^13.0.0",
"remark-cli": "^10.0.1",
"remark-preset-github": "^4.0.3",
"xo": "^0.49.0"
},
"engines": {
"node": ">=14"
},
"files": [
"xo.config.js"
],
"homepage": "https://github.com/lassjs/eslint-config-xo-lass",
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"keywords": [
"cabin",
"config",
Expand All @@ -48,63 +37,14 @@
"xo"
],
"license": "MIT",
"lint-staged": {
"*.js": [
"prettier --write",
"xo --fix",
"git add"
],
"*.md": [
"remark . -qfo",
"git add"
],
"package.json": [
"fixpack",
"git add"
]
},
"main": "index.js",
"prettier": {
"singleQuote": true,
"bracketSpacing": true,
"trailingComma": "none"
},
"remarkConfig": {
"plugins": [
"preset-github"
]
},
"main": "xo.config.js",
"repository": {
"type": "git",
"url": "https://github.com/lassjs/eslint-config-xo-lass"
},
"scripts": {
"lint": "xo && remark . -qfo",
"lint": "xo --fix && remark . -qfo && fixpack",
"prepare": "husky install",
"test": "npm run lint"
},
"xo": {
"prettier": true,
"space": true,
"parserOptions": {
"sourceType": "script"
},
"rules": {
"max-len": [
"error",
{
"code": 80,
"ignoreUrls": true
}
],
"unicorn/catch-error-name": [
"error",
{
"name": "err"
}
],
"capitalized-comments": "off",
"camelcase": "off",
"no-warning-comments": "off"
}
}
}
Loading

0 comments on commit d4c1cd3

Please sign in to comment.