Skip to content

Commit

Permalink
setup prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
fwuensche committed Nov 28, 2023
1 parent 0c0b400 commit 459e46a
Show file tree
Hide file tree
Showing 30 changed files with 1,631 additions and 1,850 deletions.
12 changes: 6 additions & 6 deletions .cherry.cjs
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
const JS_FILES = "app/**/*.{js,jsx}";
const TS_FILES = "app/**/*.{ts,tsx}";
const JS_FILES = 'app/**/*.{js,jsx}'
const TS_FILES = 'app/**/*.{ts,tsx}'

module.exports = {
project_name: "fwuensche/cherry-cli",
project_name: 'fwuensche/cherry-cli',
plugins: {
npmOutdated: {},
loc: {},
eslint: {},
jsCircularDependencies: { include: "src/**" },
jsCircularDependencies: { include: 'src/**' },
jsUnimported: {},
},
metrics: [
{
name: "TODO",
name: 'TODO',
pattern: /TODO/,
},
],
};
}
8 changes: 4 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ module.exports = {
es2021: true,
jest: true,
},
extends: ["eslint:recommended", "prettier"],
extends: ['eslint:recommended', 'prettier'],
overrides: [],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {},
};
}
10 changes: 5 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
versioning-strategy: "increase"
- package-ecosystem: 'npm'
directory: '/'
versioning-strategy: 'increase'
schedule:
interval: "daily"
time: "09:00"
interval: 'daily'
time: '09:00'
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
/bin/
7 changes: 7 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
printWidth: 120,
semi: false,
singleQuote: true,
trailingComma: 'es5',
overrides: [{ files: '*.md', options: { proseWrap: 'always' } }],
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ A very minimal config file can look something like this:

```js
module.exports = {
project_name: "PROJECT_NAME",
plugins: ["loc"],
project_name: 'PROJECT_NAME',
plugins: ['loc'],
metrics: [
{
name: "TODO/FIXME",
name: 'TODO/FIXME',
pattern: /(TODO|FIXME):/i, // the i flag makes the regex case insensitive
},
],
};
}
```

For more info about CI/CD integration, refer to the Integrations section below.
Expand Down
Loading

0 comments on commit 459e46a

Please sign in to comment.