Comments (9)
Looks useful. Happy to have it added here :)
from eslint-plugin-unicorn.
Is camelCase
really the best default? Most filesystems are case-insensitive. I would think kebabCase
would be better.
from eslint-plugin-unicorn.
idea 👍
kebab-case
as default. 👍
from eslint-plugin-unicorn.
camel-case as default. 👍
Why?
from eslint-plugin-unicorn.
I meant kebab
from eslint-plugin-unicorn.
Huh. I usually write files in camel-case. Makes it easier to just copy-paste the filename :D const fooBar = require('./fooBar');
.
I'm often scared when I propose a rule to you guys, that it will land in XO with a default value I don't like :p (now that I use XO for my own projects)
from eslint-plugin-unicorn.
You are coordinating two different systems: The possibly case insensitive file system, and the language spec for identifiers.
Dashed names are much more readable, almost as good as a space. ThereIsAReasonWeDoNotWriteLikeThisOutsideOfProgrammingLanguages.
from eslint-plugin-unicorn.
Ah yeah, forgot about OSX's case insensitivity... Ok, that makes good sense. I'll try to make a PR tomorrow.
from eslint-plugin-unicorn.
Or now.
from eslint-plugin-unicorn.
Related Issues (20)
- Rule proposal: `no-anonymous-default-export` HOT 2
- `error-message` believes that a joined array is empty when elements are conditionally pushed
- Consider remove autofixing unicorn/prevent-abbreviations HOT 5
- False positive for consistent-destructuring HOT 1
- Rule proposal: avoid loops to create `URLSearchParams` HOT 5
- False positive `array-from-async` in `unicorn/no-unnecessary-polyfills`
- Support `Array.fromAsync()`
- `no-array-callback-reference` false positive HOT 1
- Rule proposal: no-confusing-conditions HOT 1
- `string-content` rule: case insensitive matching
- Switch to flat config HOT 2
- `prefer-array-find` doesn't warn about `.at(0)`
- Change `numeric-separators-style` after decimal point HOT 2
- `unicorn/number-literal-case` conflicts with `prettier/prettier` HOT 5
- `no-array-callback-reference` false positive when using ternary
- `prefer-string-slice` bad autofix from `.substr()`
- `prevent-abbreviations` - non-ASCII characters ignored in filenames HOT 1
- `prefer-node-protocol` should not flag non-node imports HOT 2
- `unicorn/no-array-callback-reference` does not report when optional chaining HOT 1
- Rule change proposal: `no-useless-undefined` add option to skip checking function body
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-unicorn.