diff --git a/.gitignore b/.gitignore index f5e1c72..7cd1918 100644 --- a/.gitignore +++ b/.gitignore @@ -61,5 +61,5 @@ typings/ .next package-lock.json - t.* +t/ diff --git a/bin/install.js b/bin/install.js index e8ab592..4349777 100755 --- a/bin/install.js +++ b/bin/install.js @@ -5,7 +5,7 @@ const path = require('path') const pkgUp = require('pkg-up') -const ESLINTRC_YAML_CONTENT = ` +const ESLINTRC_CJS_CONTENT = ` const rules = { } @@ -23,11 +23,11 @@ async function main () { } const pkgDir = path.dirname(pkgFile) - const eslintRcJsFile = path.join(pkgDir, '.eslintrc.js') + const eslintRcJsFile = path.join(pkgDir, '.eslintrc.cjs') if (!fs.existsSync(eslintRcJsFile)) { console.info(`@chatie/eslint-config: auto generated ${eslintRcJsFile}`) - fs.writeFileSync(eslintRcJsFile, ESLINTRC_YAML_CONTENT) + fs.writeFileSync(eslintRcJsFile, ESLINTRC_CJS_CONTENT) } return 0 } diff --git a/package.json b/package.json index edb7fbf..6f30c8a 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,11 @@ { "name": "@chatie/eslint-config", - "version": "0.12.5", + "version": "0.13.1", "description": "ESLint Sharable Configurations and Rules in Chatie Organization", "main": "src/eslintrc.js", + "engines": { + "node": ">=12" + }, "scripts": { "dist": "echo dist", "pack": "npm pack",