-
-
Notifications
You must be signed in to change notification settings - Fork 301
Closed
Labels
🎁 Rewarded on IssuehuntThis issue has been rewarded on IssuehuntThis issue has been rewarded on Issuehuntbughelp wanted
Description
I have this in my package.json:
"xo": {
"extends": "xo-react",
"parser": "babel-eslint",
"plugins": ["react"],
"envs": ["node", "browser"],
"rules": {
"react/forbid-component-props": 0,
"react/jsx-closing-bracket-location": ["error", "tag-aligned"]
},
"overrides": [{
"files": "src/client/components/*.js",
"rules": {
"unicorn/filename-case": [
"error", {"case": "pascalCase"}
]
}
}, {
"files": "src/client/containers/*.js",
"rules": {
"unicorn/filename-case": [
"error",
{"case": "pascalCase"}
]
}
}]
}And I have the file src/client/components/ExtendedReferenceManyField.js
Now, if I call
$ xo src/client/components/ExtendedReferenceManyField.js
it finishes without errors. However, calling:
$ xo /home/user/dev/project/src/client/components/ExtendedReferenceManyField.js
will output:
src/client/components/ExtendedReferenceManyField.js:1:1
✖ 1:1 Filename is not in kebab case. Rename it to extended-reference-many-field.js. unicorn/filename-case
1 error
I stumbled on this while using lint-staged in my project.
xo version: 0.18.2
Node version: 6.10.1
OS: Linux Mint 18 Cinnamon 64-bit
futpib earned $60.00 by resolving this issue!
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on Issuehunt to raise funds.
zanona, rizowski and Rowno
Metadata
Metadata
Assignees
Labels
🎁 Rewarded on IssuehuntThis issue has been rewarded on IssuehuntThis issue has been rewarded on Issuehuntbughelp wanted