🎉 Initial commit

parents
Pipeline #3181 passed with stage
in 31 seconds
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
},
ignorePatterns: ["node_modules/", "build"],
plugins: [
"@typescript-eslint",
],
extends: [
"standard-with-typescript",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
],
rules: {
"@typescript-eslint/indent": ["error", 4],
"@typescript-eslint/member-delimiter-style": ["error", { "multiline": { "delimiter": "semi", "requireLast": true }, "singleline": { "delimiter": "semi", "requireLast": false } }],
"@typescript-eslint/no-unnecessary-condition": ["error", { ignoreRhs: true }],
"@typescript-eslint/quotes": ["error", "double"],
"@typescript-eslint/require-await": "error",
"@typescript-eslint/strict-boolean-expressions": "off",
"comma-dangle": ["error", "always-multiline"],
"curly": ["error", "multi"],
"keyword-spacing": ["error", { overrides: { if: { after: false }, for: { after: false } } }],
"lines-between-class-members": "off",
"no-console": "error",
"require-await": "off",
"semi": ["error", "always"],
"sort-imports": ["error", { ignoreCase: true }],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
},
};
node_modules/
image: node:alpine
pack:
script:
- npm pack
artifacts:
paths:
- eslint-config-osufrlive-*.tgz
only:
- tags
# eslint-config-osufrlive
ESLint config for osu!frlive projects.
## Usage
```
npm i https://git.cartooncraft.fr/osufrlive/eslint/-/jobs/artifacts/v0.0.1/download\?job\=pack
npx install-peerdeps -o -d eslint-config-osufrlive
```
Paste in .eslintrc.js:
```javascript
module.exports = {
root: true,
extends: [
"osufrlive",
],
};
```
Add the following script to `package.json`:
```json
"lint": "eslint . --ext .js,.ts"
```
const eslintrc = require('./.eslintrc');
module.exports = eslintrc;
This diff is collapsed.
{
"name": "eslint-config-osufrlive",
"version": "0.0.1",
"main": "index.js",
"peerDependencies": {
"eslint-config-standard-with-typescript": "^11.0.1",
"@typescript-eslint/eslint-plugin": "^2.13.0",
"eslint": "^6.8.0",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-node": "^9.2.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"typescript": "^3.7.4"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment