Skip to content

Instantly share code, notes, and snippets.

@surenachiron
Last active October 13, 2024 12:30
Show Gist options
  • Select an option

  • Save surenachiron/165ff53f1fced4bc731dda5dde6ac09f to your computer and use it in GitHub Desktop.

Select an option

Save surenachiron/165ff53f1fced4bc731dda5dde6ac09f to your computer and use it in GitHub Desktop.
full DevTools configuration
{
"version": "0.2",
"language": "fa,en", // if you use Persian
"language": "en", // if you don't use Persian
"useGitignore": true,
"import": ["@cspell/dict-fa-ir/cspell-ext.json"], // delete this line if you don't use Persian lan
"ignorePaths": ["node_modules"],
"dictionaryDefinitions": [
{
"name": "keywords",
"description": "Project keywords",
"path": "./keywords.txt"
}
],
"dictionaries": ["keywords"]
}
root = true
[*]
chareset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.{js,ts,tsx}]
curly_bracket_next_line = false
spaces_around_brackets = inside
module.exports = {
root: true,
env: { browser: true, es2020: true },
ignorePatterns: ["dist", ".husky", ".next"],
parser: "@typescript-eslint/parser",
plugins: ["prettier", "@typescript-eslint"],
extends: [
"eslint:recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
// "next/core-web-vitals", if you work with nextjs
// "next/typescript",
],
rules: {
"no-redeclare": "off",
"no-undef": "off",
"linebreak-style": "off",
"react/prop-types": "off",
"prettier/prettier": "error",
},
};
{
"*.{js,ts,tsx}": ["prettier --write", "cspell --no-must-find-files", "eslint"]
}
{
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"tabWidth": 2,
"arrowParens": "always",
"printWidth": 120,
"endOfLine": "lf"
}
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-empty": [2, "never"],
"type-enum": [
2,
"always",
[
"feat",
"fix",
"docs",
"chore",
"style",
"refactor",
"ci",
"test",
"revert",
"perf",
"vercel",
],
],
},
};
// cspell dictionary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment