Skip to content

Commit

Permalink
replace xo config with actual config
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisspiegl committed Mar 22, 2022
1 parent 36cae3b commit 6157484
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 1 deletion.
62 changes: 62 additions & 0 deletions .xo-config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
module.exports = {
ignores: [
'./dist', './ios',
],
rules: {
semi: ["error", "never"],
indent: ["error", 2, {
SwitchCase: 1
}],
quotes: ["error", "single", {
allowTemplateLiterals: true
}],
curly: ["error", "multi-line"],
"object-curly-spacing": ["error", "always"],
"arrow-parens": ["error", "always"],
"capitalized-comments": "off",
"import/extensions": [
'error',
"never",
{
'json': "always",
'vue': "always",
'css': 'always',
'scss': 'always',
},
],
"node/file-extension-in-import": [
"error",
"never",
{
"tryExtensions": [".js", ".json"],
'.json': "always",
'.vue': "always",
'.css': 'always',
'.scss': 'always',
},
],
"import/no-unassigned-import": [
'error',
{
"allow": ["**/*.css", "**/*.scss"],
},
],
// 'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0 }],
// 'padding-line-between-statements': ['error', { blankLine: 'any', prev: '*', next: '*' }],
// 'no-unused-vars': ['warn', { caughtErrors: 'none', varsIgnorePattern: '^error$', args: 'none' }],
// 'require-await': 'error',
// 'no-return-await': 'off',
"unicorn/filename-case": [
"error",
{
cases: {
camelCase: true,
pascalCase: true,
},
ignore: ["\\d*-[\\w\\d]*.js"],
},
],
// 'unicorn/prefer-optional-catch-binding': 'off',
// 'unicorn/no-process-exit': 'off',
},
};
1 change: 0 additions & 1 deletion .xo-config.json

This file was deleted.

0 comments on commit 6157484

Please sign in to comment.