Skip to content
This repository was archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
Ajout rule eslint header licence
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin GAREL committed Jul 6, 2018
1 parent 15a0077 commit 400a4aa
Show file tree
Hide file tree
Showing 17 changed files with 61 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"extends": ["react-app"]
"extends": ["react-app"],
"plugins": ["notice"],
"rules": {
"notice/notice": [
"error",
{
"templateFile": "license.js"
}
]
}
}
1 change: 1 addition & 0 deletions license.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Copyright 2015-2018 calculette-rh.com
23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"devDependencies": {
"eslint-plugin-notice": "^0.7.7",
"husky": "^1.0.0-rc.10",
"prettier": "^1.13.7",
"pretty-quick": "^1.6.0",
Expand Down
2 changes: 2 additions & 0 deletions src/containers/app/app-navbar.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2015-2018 calculette-rh.com

import React from 'react';
import {Link} from 'react-router-dom';
import {
Expand Down
2 changes: 2 additions & 0 deletions src/containers/app/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2015-2018 calculette-rh.com

import React from 'react';
import {Route} from 'react-router-dom';
import Home from '../home';
Expand Down
2 changes: 2 additions & 0 deletions src/containers/gestionPersonnel/anciennete.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2015-2018 calculette-rh.com

import React from 'react';
import {connect} from 'react-redux';
import AncienneteForm from './ancienneteForm';
Expand Down
2 changes: 2 additions & 0 deletions src/containers/gestionPersonnel/ancienneteForm.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2015-2018 calculette-rh.com

import React from 'react';
import {Field, reduxForm} from 'redux-form';
import {updateAnciennete} from '../../reducers/anciennete';
Expand Down
2 changes: 2 additions & 0 deletions src/containers/gestionPersonnel/conversionMinCent.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2015-2018 calculette-rh.com

import React from 'react';

export default class ConversionMinCent extends React.Component {
Expand Down
2 changes: 2 additions & 0 deletions src/containers/home/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2015-2018 calculette-rh.com

import React from 'react';
import {push} from 'react-router-redux';
import {bindActionCreators} from 'redux';
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2015-2018 calculette-rh.com

import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
Expand Down
2 changes: 2 additions & 0 deletions src/reducers/anciennete.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2015-2018 calculette-rh.com

import moment from 'moment';

export const UPDATE_ANCIENNETE = 'anciennete/UPDATE';
Expand Down
2 changes: 2 additions & 0 deletions src/reducers/counter.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2015-2018 calculette-rh.com

export const INCREMENT_REQUESTED = 'counter/INCREMENT_REQUESTED';
export const INCREMENT = 'counter/INCREMENT';
export const DECREMENT_REQUESTED = 'counter/DECREMENT_REQUESTED';
Expand Down
2 changes: 2 additions & 0 deletions src/reducers/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2015-2018 calculette-rh.com

import {combineReducers} from 'redux';
import {routerReducer} from 'react-router-redux';
import counter from './counter';
Expand Down
2 changes: 2 additions & 0 deletions src/reducers/simpleReducer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2015-2018 calculette-rh.com

export default (state = {}, action) => {
switch (action.type) {
case 'SIMPLE_ACTION':
Expand Down
2 changes: 2 additions & 0 deletions src/registerServiceWorker.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2015-2018 calculette-rh.com

// In production, we register a service worker to serve assets from local cache.

// This lets the app load faster on subsequent visits in production, and gives
Expand Down
2 changes: 2 additions & 0 deletions src/store.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2015-2018 calculette-rh.com

import {createStore, applyMiddleware, compose} from 'redux';
import {routerMiddleware} from 'react-router-redux';
import thunk from 'redux-thunk';
Expand Down

0 comments on commit 400a4aa

Please sign in to comment.