@ggascoigne/lint-staged-config
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -1,2 +0,1 @@ | ||
/* eslint-disable sonarjs/no-duplicate-string */ | ||
module.exports = { | ||
@@ -8,2 +7,2 @@ 'CHANGELOG.md': ['prettier --cache --write'], | ||
'*.{css,scss}': ['prettier --cache --write', 'stylelint --cache --fix'], | ||
}; | ||
} |
{ | ||
"name": "@ggascoigne/lint-staged-config", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "A shareable lint-staged configuration for projects.", | ||
@@ -35,3 +35,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "e854820109272ebc4a23eac5ece79e35a8690844" | ||
"gitHead": "9fb62d433e3e469b772b9793e4c0efd5e482182e" | ||
} |
@@ -1,12 +0,8 @@ | ||
/* eslint-disable security/detect-non-literal-fs-filename */ | ||
const fs = require('node:fs'); | ||
const path = require('node:path'); | ||
const fs = require('node:fs') | ||
const path = require('node:path') | ||
const filePath = path.join(process.env.INIT_CWD, 'lint-staged.config.js'); | ||
const filePath = path.join(process.env.INIT_CWD, 'lint-staged.config.js') | ||
if (!fs.existsSync(filePath)) { | ||
fs.writeFileSync( | ||
filePath, | ||
`module.exports = require('@ggascoigne/lint-staged-config');` | ||
); | ||
fs.writeFileSync(filePath, `module.exports = require('@ggascoigne/lint-staged-config');`) | ||
} |
module.exports = { | ||
'*.{yml,yaml}': ['prettier --cache --write', 'yamllint --strict .'], | ||
'.github/workflows/*.{yml,yaml}': ['actionlint'], | ||
}; | ||
} |
4022
17