Skip to content

File Naming Convention

Kato Charles edited this page May 27, 2019 · 2 revisions

When creating a file, use these naming conventions.

Components

These should be named in PascalCase, i.e

  • ComponentName.js - correct
  • componentName.js - wrong

Tests

These should be named in PascalCase, i.e

  • ComponentName.test.js - correct
  • componentName.test.js - wrong

Actions

These should be named in camelCase, i.e

  • actionName.js - correct
  • ActionName.js - wrong

Reducers

These should be named in camelCase, i.e

  • reducerName.js - correct
  • ReducerName.js - wrong

scss

These should be named in PascalCase, i.e

  • ComponentName.scss - correct
  • componentName.scss - wrong